package cn.uniquesoft.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @创建人 zyx
 * @创建时间 2017年6月22日 下午2:34:05
 * @描述 菜单树状结构
 */
@SuppressWarnings("serial")
public class MenuTreeVO extends MenuVO {
	private int					id;
	private String				text;
	private String				iconCls;
	private List<MenuTreeVO>	children;

	public List<MenuTreeVO> getChildren() {
		return children;
	}

	public void setChildren(List<MenuTreeVO> children) {
		this.children = children;
	}

	public void addChildItem(MenuTreeVO item) {
		if (this.children == null) {
			this.children = new ArrayList<MenuTreeVO>();
		}
		this.children.add(item);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

}
